<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache"> 
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
	<meta http-equiv="expires" content="0">
	<title>站点配置</title>
	<link rel="stylesheet" href="<%=basePath%>css/style.css">
	<link rel="stylesheet" href="<%=basePath%>css/msg.css">
	<link rel="stylesheet" href="<%=basePath%>css/ui_base.css">
	<link rel="stylesheet" href="<%=basePath%>css/f_style.css">
	<style>
		.strWidth {width: 90px !important;}
		.inpWidth {width: 200px !important;}
		.unitWidth {width: 350px !important;}
		.btnWidth {width: 100px !important;}
		.tc {text-align: center !important;}
		label{display:block;color:red;margin:5px 60px;}
		form{position:relative;width:90%;margin:0 auto;}
	</style>
	<script>
		function jsCk(t) {
			if (!/^[1-9][0-9]*$/g.test(t.value)) {
				t.value = "";
				return false;
			}
		}
	</script>
</head>

<body ng-app="listApp">
	<!--抬头bar-->
	<jsp:include page="/public/header.jsp" />
	<div class="main w clearfix">
		<!--主窗口-->
		<div class="class_rg" ng-controller="tableCtrl" style="width: 1200px">
			<!--内容区-->
			<div class="path_">
				<a href="<%=basePath%>index.jsp?parId=0">首页</a> > <a
					href="<%=basePath%>resource/index.jsp?parId=4">资源调配</a> > <a
					href="<%=basePath%>resource/siteConfig.jsp?parId=401">站点配置</a>
			</div>
			<div class="Top_cag">
				<div class="t_bleft fl" style="width: 750px;">
					<div class="fl mbine unitWidth">
						<strong class="th strWidth">站点名称 </strong> <input type="text"
							class="ui_text inpWidth" ng-model="vm.title">
					</div>
					<div class="fl mbine unitWidth">
						<strong class="th" style="float: left">站点类型</strong>
						<div class="ui_select selectListObj" style="float: left;">
							<input type="hidden" id="tapSelects" class="infoVal" value="" autocomplete="off"/>
							<span class="ui_s_t" id="addIsSignName">全部</span>
							<div class="ui_s_bk" style="display: none; z-index: 99;">
								<a href="javascript:void(0)" type="">全部</a> <a
									href="javascript:void(0)" type="News">新闻</a> <a
									href="javascript:void(0)" type="BBS">论坛</a>
								<!--                                <a href="javascript:void(0)" type="PublicNotice">公告</a>
                                    <a href="javascript:void(0)" type="WeChat">微信</a>
                                    <a href="javascript:void(0)" type="Weibo">微博</a>
                                    <a href="javascript:void(0)" type="ResearchReport">研报</a>
                                    <a href="javascript:void(0)" type="BLOG">博客</a>
                                    <a href="javascript:void(0)" type="Live">视频</a>
                                    <a href="javascript:void(0)" type="EPaper">电子报</a> -->
							</div>
						</div>
					</div>
					<div class="divline v5"></div>
					<div class="fl mbine unitWidth">
						<strong class="th strWidth">站点网址 </strong> <input type="text"
							class="ui_text inpWidth" ng-model="vm.content">
					</div>

				</div>
				<div class="t_bright fr" style="padding: 10px 0 0 0; width: 400px;">
					<a href="javascript:void(0);" class="ui_btn yellow"
						ng-click="getAjax()" id="Msearch">查询</a> <a
						href="javascript:void(0);" data-url="siteAdd.jsp"
						class="ui_btn yellow openSrc">新增</a> <a href="javascript:void(0);"
						ng-click="domAjax('modelExc')" class="ui_btn green btnWidth">导入模版下载</a>
					<div class="divline v5"></div>
					<a href="javascript:void(0);" class="ui_btn green editExaDataBtn">导入</a>
					<a href="javascript:void(0);" ng-click="domAjax('outExc')"
						class="ui_btn green ">导出</a>
				</div>
			</div>
			<div class="msg_class_table">
				<div class="title">站点信息列表</div>
				<table width="100%" border="0" cellspacing="1" cellpadding="0"
					class="dtab">
					<tr class="th">
						<th scope="col" width="10" style="padding: 0 50px;" class="tc">
							<span class="ui_checkbox" id="zcont"></span>
						</th>
						<!--<th scope="col" width="100" >序号</th>-->
						<th scope="col" width="320" class="tc">站点名称</th>
						<th scope="col" width="320" class="tc">站点网址</th>
						<th scope="col" width="200" class="tc">站点类型</th>
						<th scope="col" class="tc">操作</th>
					</tr>
					<div id="waiting" ng-show='dLoading'>
						<img src="<%=basePath%>js/layer/skin/default/xubox_loading0.gif">
					</div>
					<tr class="td" ng-repeat="key in datas.returnData"
						ng-init="type_names={News:'新闻',EPaper:'电子报',ResearchReport:'研报',PublicNotice:'公告',WeChat:'微信',Weibo:'微博',BBS:'论坛',BLOG:'博客',Live:'视频'}">
						<td style="padding: 12px 50px;" class="tc"><span
							class="ui_checkbox" data-id="{{key.domain_id}}"></span></td>
						<!--<td><span ng-bind="$index+1"></span></td>-->
						<td class="tc"><span title="{{key.domain_name}}"
							ng-bind="key.domain_name"
							style="width: 307px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block;"></span>
						</td>
						<td class="tc"><span title="{{key.domain_domain}}"
							ng-bind="key.domain_domain"
							style="width: 307px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block;"></span>
						</td>
						<td ng-bind="type_names[key.domain_category]" class="tc"></td>
						<td class="tc"><a href="javascript:void(0)"
							data-url="siteEdit.jsp?domain_id={{key.domain_id}}&parId={{addparid}}"
							class="green openSrc" id="update_check">修改</a>&nbsp;&nbsp;&nbsp;
							<a href="javascript:void(0)"
							ng-click="domAjax('del',key.domain_id,key.domain_name)"
							class="green" id="delBtn">删除</a></td>
					</tr>
					<tr class="pages">
						<td colspan="5">
                        	<div class="ui_page">
                            	<span class="ic fl pr20">共 <b ng-bind="datas.totalRecords"></b> 条记录</span>
                                <span class="sw fl pr20" id="jssum">显示 <a ng-class="$index==0?'cur':''" ng-repeat="key in [10,20,50,100]" ng-bind="key" pagen> </a></span>
                                <span class="gopg fr">跳转到<input type="button" class="btn" value="go" ng-click="setAjax({'pageindex':keyInt})"><input type="text" min="1" class="txt" ng-model="keyInt" onkeyup="jsCk(this)"></span>
                                <div class="pg fr" id="jsgo">
                                	<a href="javascript:void(0)" data-href="{{prevIndex}}" class="str" pageg ng-show="vm.pageIndex<2?false:true"><</a>
                                    <a ng-class="key==vm.pageIndex?'cur':''" data-href="{{key}}" ng-repeat="key in pages" ng-bind="key" pageg> </a>
                                    <a href="javascript:void(0)" data-href="{{nextIndex}}" class="end" pageg ng-show="vm.pageIndex>pages_e-1?false:true">></a>
                                </div>
                            </div>
                        </td>
                    </tr>
				</table>
			</div>
			<!--内容区-->
		</div>
	</div>

	<!--上传excel插件-->
	<!--<link href="<%=basePath%>js/bootstrap/css/bootstrap.min.css" rel="stylesheet">-->
	<script src="<%=basePath%>js/jquery.min.1.8.2.js"></script>
	<script src="<%=basePath%>js/jquery.form.js"></script>
	<script src="<%=basePath%>js/bootstrap/js/jquery.validate-1.7.js"></script>
	<script src="<%=basePath%>js/bootstrap/js/bootstrap.min.js"></script>
	<script src="<%=basePath%>js/bootstrap/js/fileinput.js"></script>

	<script src="<%=basePath%>js/jquery.easing.1.3.js"></script>
	<script src="<%=basePath%>js/jquery.mousewheel.js"></script>
	<script src="<%=basePath%>js/layer/layer.min.js"></script>
	<script src="<%=basePath%>js/angular.min.1.2.5.js"></script>
	<script src="<%=basePath%>js/laydate/laydate.js"></script>
	<script src="<%=basePath%>js/config.js"></script>
	<script src="<%=basePath%>js/userSession.js"></script>
	<script src="<%=basePath%>resource/js/angular.siteConfig.js"></script>
	<link rel="stylesheet"	href="<%=basePath%>js/Validation/css/validationEngine.jquery.css">
	<script	src="<%=basePath%>js/Validation/js/jquery.validationEngine-zh_CN.js" defer="defer"></script>
	<script src="<%=basePath%>js/Validation/js/jquery.validationEngine.js" defer="defer"></script>

	<!--以下是弹出浮层显示的部分-->
	<div class="layerInfoArea f_zuZhiGuanLiLayer f_gongSiLieBiaoLayer"
		id="editExaDataLayer">
		<i class="closeBtn"></i>
		<div class="f_title" id="editExaData_tile">上传文件</div>
		<div class="container">
			<form id="activityForm" method="post">
				<div class="file">
					<!-- <label for="file">文件：</label> -->
					<div class="userdefined-file">
						<input type="text" name="userdefinedFile" id="userdefinedFile"
							value="未选择任何文件">
						<button type="button">浏览</button>
					</div>
					<input type="file" name="importExcel" id="importExcel">
				</div>
			</form>
		</div>

		<div class="submitAreaa submitAreaaGoGo" style="border-top: 0;">
			<a href="javascript:void(0)" class="ui_btn yellow" id="editExaSubmitBtn">确定</a> 
			<a href="javascript:void(0)" class="ui_btn cancelLayer">取消</a>
		</div>
		<div class="divline"></div>
	</div>
	<script>
		window.onload = function() {
			document.getElementById("importExcel").onchange = function() {
				document.getElementById("userdefinedFile").value = document.getElementById("importExcel").value;
			}
		};
	</script>
</body>
</html>